<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // var date=new Date();
        // // console.log(date);
        // var times=date.getTime();
        // console.log(times);
        // var dd=new Date(times);
        // console.log(dd);

        //倒计时
        var today=new Date();
        var endDay=new Date('2020/10/1');
        var result=(endDay-today)/1000;
        var day=parseInt(result/(24*60*60));
        console.log(day);
        console.log("距离国庆结束还有：");
    </script>
</head>
<body>
    
</body>
</html>